package com.itwxz.system.domain.vo;

import com.itwxz.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OperateOrderVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 机主名称
     */
    @Excel(name = "机主名称")
    private String name;

    /**
     * 身份
     */
    @Excel(name = "身份")
    private Integer identity;

    /**
     * 宿舍栋数
     */
    @Excel(name = "宿舍栋数")
    private String building;

    /**
     * 宿舍号
     */
    @Excel(name = "宿舍号")
    private String dormitory;

    /**
     * 订单类型
     */
    @Excel(name = "订单类型")
    private Integer type;

    private String typeName;

    /**
     * 订单详情
     */
    @Excel(name = "订单详情")
    private String details;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态")
    private Integer status;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 转单人id
     */
    @Excel(name = "转单人id")
    private Long assignorId;

    /**
     * 转单人名
     */
    private String assignorName;

    /**
     * 维修人员id
     */
    @Excel(name = "维修人员id")
    private Long staffId;

    /**
     * 维修人员名
     */
    private String staffName;
}
